package com.chen.function;

import java.util.function.Predicate;

// 断定型接口
public class FunctionTest2 {
    public static void main(String[] args) {

        // 判断字符串是否为空
        Predicate<String> predicate = String::isEmpty;
        System.out.println(predicate.test(""));

    }
}
